package com.wxx.design.decorator.v1;

/**
 * @author Jetwang
 * @version 1.0
 * @date 2022/4/18 15:18
 */
public class BatterCakeWithEgg extends BatterCake{
    @Override
    public String getDesc() {
        return super.getDesc() + "外加一个蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
